package com.xiaozhi.service.impl;

import java.util.List;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xiaozhi.dao.BussinessComboMapper;
import com.xiaozhi.entity.BussinessCombo;
import com.xiaozhi.entity.PersionCombo;
import com.xiaozhi.service.BussinessComboService;

import lombok.AllArgsConstructor;

@Service
@AllArgsConstructor
public class BussinessComboServiceImpl implements BussinessComboService{
    
    private final BussinessComboMapper bussinessComboMapper;
        /*
     * 查询套餐列表
    */
    @Transactional
    @Override
    public List<BussinessCombo> query(BussinessCombo combo)
    {
        List<BussinessCombo> combo1 = bussinessComboMapper.query(null);
        return combo1;
    }

    /*
     * 通过ID查询套餐
    */
    @Transactional
    @Override
    public BussinessCombo selectComboById(Integer id)
    {
        return bussinessComboMapper.selectComboById(id);
    }
    @Transactional
    @Override
    public List<PersionCombo> query_persion_combe(String opneId)
    {
        return bussinessComboMapper.query_persion_combe(opneId);
    }
}
